Ext.define('DragonApp.view.white.AccountGrid', {
    extend: 'DragonApp.view.foundation.Grid',

    alias: ['widget.whitegrid_account'],

    controller: 'whitelist',

    requires: [
        'DragonApp.view.white.AccountBar',
        'DragonApp.view.white.AccountForm',
        'DragonApp.store.JsonPWhiteAccount'
    ],
    title: '账号',

    dockedItems: [{
        xtype: 'whitebar_account',
        dock: 'top'
    }],
    columns: [
        { text: '序号', xtype: 'rownumberer', width: 100, align: 'center' },
        { text: '序号', dataIndex: 'id', align: 'center', hidden: true, hideable: false },
        { text: '账号', dataIndex: 'account', align: 'left', width: 280 },
        { text: '适用服务器', dataIndex: 'server', align: 'left', flex: 1, renderer: 'serverRender' }
    ],
    selModel: {
        selType: 'checkboxmodel',
        mode: "MULTI",
        checkOnly: true
    },
    store: {
        type: 'jsonPWhiteAccountStore',
        storeId: 'jsonPWhiteAccountStore'
    }
});